package com.neu.niuyuchao.dao;

import com.neu.commons.Dao.BaseDao;
import com.neu.commons.Utils.GenerateSqlDao;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class StuInfoDaoImpl extends BaseDao {
    public List<Map<String,Object>> findStu(String stu_no){
        List<Map<String,Object>> list=new ArrayList<>();
        String sql="select * from v_stu_info where stu_no=?";
        list=BaseDaoQuery(sql,stu_no);
        return list;
    }
    public int commitApply(Map<String,String> item){
        int row=0;
        GenerateSqlDao gs=new GenerateSqlDao("t_approve",
                "appro_id","seq_t_approve");
        row=gs.insert(item);
//        System.out.println(row);
        return row;
    }
}
